#ifndef _CCALWINDOW_H_
#define _CCALWINDOW_H_

#include "auto.h"

#include "ccalmanager.h"

#include <buola/io/curi.h>
#include <buola/gui/cwindow.h>

namespace buola { namespace bcal {

class CCalWindow : public gui::CWindow
{
public:
    enum
    {
        VIEW_NONE,
        VIEW_DAY,
        VIEW_WEEK,
        VIEW_MONTH
    };

    CCalWindow(CCalManager *pManager);
    virtual ~CCalWindow();

private:
    void SetView(int pViewType);

    void OnCalendarAdded(CCalendar *pCalendar);

protected:
    CCalManager *mManager;

    gui::PListBox mCalendarList;

    PMiniMonthView mMiniView;
    gui::PWindow mViewWindow;
    PControlBar mControlBar;
    gui::PStatusBar mStatusBar;

    int mViewType;
    gui::PWindow mCurrentView;
};

/*namespace buola*/ } /*namespace bcal*/ }

#endif
